package graph;

import java.util.LinkedList;


import retrievedatafromrevishapi.AccessBooksData;
import bookworm.Review;

/**
 * this class will construct the graph based on the revish API
 * (it won't work unless there's Internet)
 *  @author Mina
 *
 */
public class BookReviewGraphConstructorFromAPI extends AbstractBookReviewGraphConstructor
{
	
	public LinkedList<Review> getBookReviewsFromOneTag(String tag)
	{
		LinkedList<String> searchArguments = new LinkedList<String>();
		searchArguments.add("tag");
		LinkedList<String> argumentsValues = new LinkedList<String>();
		argumentsValues.add(tag);
		
		AccessBooksData accessBooksData = AccessBooksData.getAccessBooksData();
		LinkedList<Review> allBookReviewsFromOneTag =
				accessBooksData.getAllBookReviewsFromRevishAPI(searchArguments, argumentsValues);
		return allBookReviewsFromOneTag;
	}
}
